<?php if (!defined('HKCMS_VERSION')) exit(); ?>
{hkcms:admintemplate file="common/Head"}
<style type="text/css">
  .pages>.pagination>li{
    float: left;
  }
</style>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  {hkcms:admintemplate file="common/Nav"}
  <div class="h_a">搜索</div>
  <form method="post" action="{:url('loginlog')}">
  <div class="search_type cc mb10">
    <div class="mb10"> <span class="mr20">
    搜索类型：
    <select class="select_2" name="status" style="width:70px;">
        {php}$_GET['status']=isset($_GET['status'])?$_GET['status']:'';{/php}

        {php}$_GET['username'] = isset($_GET['username'])?$_GET['username']:'';{/php}

        {php}$_GET['loginip'] = isset($_GET['loginip'])?$_GET['loginip']:'';{/php}

        {php}$_GET['start_time'] = isset($_GET['start_time'])?$_GET['start_time']:'';{/php}

        {php}$_GET['end_time'] = isset($_GET['end_time'])?$_GET['end_time']:'';{/php}
        <option value=''  {if condition="$_GET['status'] eq '' "}selected{/if}>不限</option>
        <option value="1" {if condition="$_GET['status'] eq '1'"}selected{/if}>登陆成功</option>
        <option value="0" {if condition="$_GET['status'] eq '0'"}selected{/if}>登陆失败</option>
      </select>
      用户名：<input type="text" class="input length_2" name="username" size='10' value="{$_GET.username}" placeholder="用户名">
      IP：<input type="text" class="input length_2" name="loginip" size='20' value="{$_GET.loginip}" placeholder="IP">
      时间：
      <input type="text" name="start_time" class="input length_2 J_date" value="{$_GET.start_time}" style="width:80px;">
      -
      <input type="text" class="input length_2 J_date" name="end_time" value="{$_GET.end_time}" style="width:80px;">
      <button class="btn">搜索</button>
      </span> </div>
  </div>
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td align="center" width="80">ID</td>
            <td>用户名</td>
            <td>密码</td>
            <td align="center">状态</td>
            <td align="center">其他说明</td>
            <td align="center" width="120">时间</td>
            <td align="center" width="120">IP</td>
          </tr>
        </thead>
        <tbody>
          {volist name="data" id="vo"}
          <tr>
            <td align="center">{$vo.id}</td>
            <td>{$vo.username}</td>
            <td>{$vo.password}</td>
            <td align="center">{if condition="$vo['status'] eq 1"}登陆成功{else /}<font color="#FF0000">登陆失败</font>{/if}</td>
            <td align="center">{$vo.info}</td>
            <td align="center">{$vo.logintime|date="Y-m-d H:i:s",###}</td>
            <td align="center">{$vo.loginip}</td>
          </tr>
         {/volist}
        </tbody>
      </table>
      <div class="p10">
        <div class="pages"> {$data->render()} </div>
      </div>
    </div>
</div>
<script src="{$config_siteurl}statics/js/common.js"></script>
</body>
</html>